﻿@model WebGioiThieu.Modules.SlideImages.SlideImages
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2>Quản lý slide ảnh</h2>

@foreach (var item in Model.SlideImageList)
{
    var imagepath = WebGioiThieu.AppConstants.Appconstant.ImagePath + @item.PictureUrl;
    <div class="slideItem">
        <div class="slide-image">
            <img src="@imagepath" width="300" height="117"/></div>
        <div class="slide-content">
            <h2>@Html.DisplayFor(i => item.Name)</h2><br />
            Liên kết:@Html.DisplayFor(i => item.Url)<br />
            Thứ tự hiển thị:@Html.DisplayFor(i => item.DisplayOrder)<br />
            <a class="slide-icon" href="slideimages/Update/@item.Id">
                <img src="/Content/images/001_45.png" title="Cập nhật"/></a>
            <a class="slide-icon" href="slideimages/Delete/@item.Id">
                <img src="/Content/images/001_05.png" title="Xóa"/></a>
        </div>
        <div class="clear"></div>
    </div>
}
<a class="slide-add" href="slideimages/Create">
    <img src="/Content/images/add.png" />
</a>